import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;



public class shier{

	public static void main(String[] args) throws Exception {
	
		Integer count=987;
		
		
		PrintWriter ar = null;
		BufferedReader br = null;
		try {
			FileWriter fw = new FileWriter("d:/student.txt");
			ar = new PrintWriter(fw);
			for(int i=0;i<=count*10000000;i++){
				ar.println(i);
			}
			ar.close();

			
			FileReader fr = new FileReader("d:/student.txt");
			br = new BufferedReader(fr);
			String line = null;
			while ((line = br.readLine()) != null)
				System.out.println(line);
			

		} catch (IOException exception) {
			exception.printStackTrace();
		}finally{
			if (br != null) {
				br.close();
			}
		}
	}

	
}